package com.ruoyi.ap.domain;

import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@EqualsAndHashCode(callSuper = true)
@Data
/*
  农户对象 ap_farmer
  @author HuaQP
  @date 2023-09-11
 */
public class Farmer extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private Long id;

    /** 名称 */
    @Excel(name = "名称")
    @NotBlank(message = "农户名不能位空")
    private String name;

    /** 电话 */
    @Excel(name = "电话")
    private String phone;

    /** 村庄 */
    @Excel(name = "村庄")
    @NotNull(message = "村庄不能为空")
    private Long villageId;

    /** 党员标识 */
    @Excel(name = "党员标识")
    private Integer partyFlag;

}
